import { createBrowserRouter } from 'react-router-dom';

import Layout from '../layout/index.tsx';
import Login from '../pages/Login/index.tsx';
import Home from '../pages/Home/index.tsx';
import Dashboard from '../pages/Dashboard/index.tsx';

const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout />,
    children: [
      {
        index: true,
        path: '/dashboard',
        element: <Dashboard />,
      },
      {
        path: '/home',
        element: <Home />,
      },
    ],
  },
  {
    path: '/login',
    element: <Login />,
  },
]);

export default router;
